package com.AJava1710D.xianchengchi.anli;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

/**
 * 作者: LCG
 * 日期: 2020/6/23 10:56
 * 描述:
 */
public class TestLianJieStar {

    public static void main(String[] args) {

        ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(1);

        scheduledExecutorService.scheduleAtFixedRate(new LianJieStar(scheduledExecutorService),0,3,TimeUnit.SECONDS);

    }

}
